﻿@model IEnumerable<Web7.Container.Localization.LocaleStringResource> 
@using System.Linq;
@using Web7.Container.Html
@{
    Layout = Html.GetManagementLayout();
}
@using (Html.BeginForm())
{
    <div >
        <div >
   
            @T("Admin.Configuration.Languages.Resources")
        </div>
    </div>
    <div> @T("Admin.Configuration.Languages.Import") 
    |
        @T("Admin.Configuration.Languages.Export")  
        
      
         @Html.ActionLink("" + T("Admin.Configuration.Languages.Create") + "", "ResourcesCreate", "Language", new { ViewBag.LanguageId })
    </div> 
    <table border="1"  cellpadding="0" cellspacing="0" style="margin: 0 0 10px 0;" >
  
        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @item.ResourceName
                </td>
                <td>
                    @item.ResourceValue
                </td>
                <td>
                     @Html.ActionLink("" + T("Admin.Configuration.Languages.Edit") + "", "Edit", "Language", new { id = item.ResourceName }, null)
                    |
                    @Html.ActionLink("" + T("Admin.Configuration.Languages.Del") + "", "Delete", "Language", new { id = item.ResourceName }, null)
                </td>
            </tr>
        }

    </table>

}


@*@{
    ViewBag.Title = "Index";
}


@{
    var grid = new WebGrid(canPage: true, rowsPerPage: ThisController.PageSize, canSort: true, ajaxUpdateContainerId: "grid");
    grid.Bind(Model, rowCount: Model.Count(), autoSortAndPage: false);

    grid.Pager(WebGridPagerModes.All);
    @grid.GetHtml(htmlAttributes: new { id="grid" },
                        columns: grid.Columns(
                        grid.Column(format: (item) => Html.ActionLink("Edit", "Edit", new { EmployeeID = item.EmployeeID, ContactID = item.ContactID })),
                        grid.Column("FullName"),
                        grid.Column("Title")
                    ));
}
*@